//
//  TravelTourModel.m
//  ToWhere
//
//  Created by dllo on 15/11/17.
//  Copyright © 2015年 www.TE.com. All rights reserved.
//

#import "TravelTourModel.h"


@implementation TravelTourModel

-(void)dealloc{
    [_description_summary release];
    [_DES release];
    [_attraction_trips_count release];
    [_ID release];
    [_name release];
    [_name_en release];
    [_image_url release];
    [_user_score release];
    
    [super dealloc];
}
-(instancetype)initWithNSDictionary:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    
    return  self;
}

+(TravelTourModel *)travelTourModelWithNSDictionary:(NSDictionary *)dic
{
    TravelTourModel *model = [[TravelTourModel alloc]initWithNSDictionary:dic];
    
    return [model autorelease];
    
    
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"description"]) {
        self.DES = value;
    }
    
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
    
    
    
}







@end
